import { roseFourEnums } from '../enums/roseFour';

export interface GlobConfig {
  // 网站标题
  title: string;
  // 项目路径
  apiUrl: string;
  uploadUrl?: string;
  urlPrefix?: string;
  shortName: string;
}

type ProjectStr = 'showFather' | 'showMary' | 'showGlory' | 'showQueen' | 'showFaith';
// interface ProjectObj {
//   showNumber: number;
// }
export type showNumber = 0 | 1 | 2;
export type SosaryType = 'joyful' | 'luminous' | 'sorrowful' | 'glorious' | '';

export type ProjectConfig = Record<ProjectStr, showNumber> & {
  onlyShowBody: boolean;
  rosarySelect: SosaryType[];
  showSong: boolean;
};

export interface GlobEnvConfig {
  // 网站标题
  VITE_APP_TITLE: string;
  // 项目路径
  VITE_API_URL: string;
  VITE_API_URL_PREFIX?: string;
  VITE_APP_SHORT_NAME: string;
  VITE_UPLOAD_URL?: string;
  VITE_WECHAT_APP_ID: string;
}

interface GlobWrap {
  globSetting: Readonly<GlobConfig>;
}
